<template>
<view class="box">
	<image :src="pageUrl" mode="widthFix" class="page"></image>
</view>
</template>

<script>
	import {activityList} from '@/utils/interface.js'
	export default{
		data(){
			return {
				pageUrl:""
			}
		},
		onLoad(options) {
			activityList({method:"activities.advert",id:options.id}).then(res=>{
				console.log(res.data.img)
				if(res.status){
					this.pageUrl = res.data.img
				}else{
					uni.showModal({
						title:"提示",
						content:res.msg,
						showCancel:false,
						success(){
							uni.navigateBack()
						}
					})
				}
				
			})
		}
	}
</script>

<style>
	.page{
		width: 100%;
		height: 100vh;
		display: block;
		object-fit: cover;
	}
</style>
